package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Students;
import com.ruoyi.system.mapper.StudentsMapper;
import com.ruoyi.system.service.StudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentsServiceImpl implements StudentsService {

    @Autowired
    private StudentsMapper studentsMapper;

    @Override
    public List<Students> selectStudentList(Students students) {
        return studentsMapper.selectStudentList(students);
    }

    @Override
    public List<Students> selectStudentAll() {
        return studentsMapper.selectStudentAll();
    }

    @Override
    public Students selectStudentById(Long studentId) {
        return studentsMapper.selectStudentById(studentId);
    }

    @Override
    public int deleteStudentById(Long studentId) {
        return studentsMapper.deleteStudentById(studentId);
    }

    @Override
    public int deleteStudentByIds(Long[] studentIds) {
        return studentsMapper.deleteStudentByIds(studentIds);
    }

    @Override
    public int updateStudent(Students students) {
        return studentsMapper.updateStudent(students);
    }

    @Override
    public int insertStudent(Students students) {
        return studentsMapper.insertStudents(students);
    }
}
